<%@taglib prefix="html" uri="struts-html" %>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@taglib prefix="html" uri="struts-html" %>
<%@taglib prefix="c" uri="jstl" %>
<%@taglib prefix="fn" uri="jstl-fn" %>

<jsp:include page="Templates/metas.jsp"/>

    <body id="body_admin">
        <!--[if lt IE 7]>
            <p class="chromeframe">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a> to improve your experience.</p>
        <![endif]-->
       <jsp:include page="Templates/header.jsp"/>
    <section id="container_admin">  
       <jsp:include page="Templates/menu.jsp"/>
       
       <div class="content_admin">
        	<html:form action='/administrador/contenido_agregar_val' method='post'>
        	<table class="table_reg" style="text-align: left;">
        			<caption>Agregar Contenido</caption>
        			<input type="hidden" name="cve_contenido" value="${cve_contenido }"/>
        		<tr>
        			<th colspan="2" class="txt_red"> <html:errors /> </th>
        		</tr>
        		<c:if test="${correcto eq true}">
        			<tr>
	        			<th colspan="2" class="txt_red"> Se ha insertado la informaci&oacute;n </th>
	        		</tr>
        		</c:if>
	        		<tr>
	        			<td width="8%"><span class="txt_red">*</span>Subsecci&oacute;n: </td>
	        			<td>
	        				<select name="subseccion">
	        					<option value=""></option>
	        					<c:forEach items="${subsecciones}" var="subseccion" >
	        						<c:if test="${subseccion.cve_subseccion eq subseccion_sel}">
	        							<option value="${subseccion.cve_subseccion}" selected>${subseccion.nombre}</option>
	        						</c:if>
	        						<c:if test="${subseccion.cve_subseccion ne subseccion_sel}">
	        							<option value="${subseccion.cve_subseccion}">${subseccion.nombre}</option>
	        						</c:if>
	        					</c:forEach>
	        				</select>
	        			</td>
	        		</tr>
	        		<tr>
	        			<td width="8%"><span class="txt_red">*</span>Nombre: </td>
	        			<td><input type="text" size="26" class="txt_input" name="nombre" value="${nombre_sel}"></td>
	        		</tr>
	        		<tr>
	        			<td width="8%">Orden: </td>
	        			<td><input type="text" size="26" class="txt_input" name="orden" value="${orden_sel}"></td>
	        		</tr>
	        		<tr>
	        			<td width="8%"><span class="txt_red">*</span>Contenido: </td>
	        			<td><textarea class="txt_input" name="contenido" cols="80" rows="50">${contenido_sel}</textarea></td>
	        		</tr>
	        		<tr>
						<td align="left" colspan="2"><input type="image" src="../img/btn_guardarAdmin.png"></td>
					</tr>
        	</table>
        	</html:form>
        </div> 
    </section>